package Demo2;

public class Date {
    public int year;
    public int month;
    public int day;

    public void setDay(Date this,int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void printDate(Date this){
        System.out.println(this.year+"年"+this.month+"月"+this.day+"日");
    }

    public static void main(String[] args) {
        Date date1=new Date();
        date1.setDay(2025,7,2);
        date1.printDate();
    }
}
